package com.vms.control.weight;

import java.util.Arrays;
import java.util.List;


import com.vms.Settings.ValueType;
import com.vms.control.weight.adapters.Days30Adapter;
import com.vms.control.weight.model.WeightModel;
import com.vms.control.weight.ui.DayChangeUi;
import com.vms.healthcontrol.ValueUnderControl;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;

public class StatusActivity extends ActionBarActivity  {

	private WeightModel mWeightModel;
	private DayChangeUi mDayChangeUi;
	private GridView gridView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.status_activity);
		getSupportActionBar().setDisplayHomeAsUpEnabled(true);
		
		mWeightModel = new WeightModel(getApplicationContext(),ValueType.WEIGHT_EVENING);
		mDayChangeUi = new DayChangeUi(this, mWeightModel);
		
		this.gridView = (GridView) findViewById(R.id.gridView);
		gridView.setAdapter(new Days30Adapter(this));
	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	protected void onStop() {
		super.onStop();
	}

	class WeightPerDayAdapter extends BaseAdapter {

		public WeightPerDayAdapter (WeightModel model) {
			
			List<ValueUnderControl> list = model.getValuesForSelectedDate();
			
		}
		
		@Override
		public int getCount() {
			// TODO Auto-generated method stub
			return 0;
		}

		@Override
		public Object getItem(int position) {
			// TODO Auto-generated method stub
			return null;
		}

		@Override
		public long getItemId(int position) {
			// TODO Auto-generated method stub
			return 0;
		}

		@Override
		public View getView(int position, View convertView, ViewGroup parent) {
			// TODO Auto-generated method stub
			return null;
		}
		
	}
}
